import request from "@/utils/request.ts";


// 定义 UserInfo 类型
export interface OssPolicy {
    accessId: string,
    policy: string,
    signature: string,
    dir: string
    host: string
    callback: string
    expire: number
}

export const getOssPolicy = async () => {
    return await request.get<OssPolicy[]>(
        "/oss/policy"
    )
};